package com.liang.blog.reception.mapper;

import com.liang.blog.model.BlogMsgInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author：YanWenLiang
 * @Date:2024-05-02-15:30
 */
@Mapper
public interface BlogMsgInfoMapper {
    void insert(BlogMsgInfo msgInfo);

    List<BlogMsgInfo> selectMsgInfoListByUserId(@Param("toUserId") Long toUserId, @Param("fromUserId") Long fromUserId);

    void updateMsgInfoRead(@Param("toUserId") Long toUserId,@Param("fromUserId") Long fromUserId);
}
